package com.joker.demo.admin.domain.dto;


import cn.hutool.core.date.DateUtil;
import com.joker.demo.core.domain.dto.BaseQueryDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author : feixiang.li
 * @since : 2025-07-25 17:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JobInfoQueryDTO extends BaseQueryDTO implements Serializable {

    /**
     * 任务目前的状态
     */
    private Integer triggerStatus;

    /**
     * 根据唯一表示获取任务信息
     */
    private List<String> groupJobNames;

    /**
     * 任务开始时间
     */
    private Date startTime;


    @Override
    public String toString() {
        return "JobInfoQueryDTO{" +
                "triggerStatus=" + triggerStatus +
                ", groupJobNames=" + groupJobNames +
                ", startTime=" + DateUtil.format(startTime, "yyyy-MM-dd HH:mm:ss") +
                "} " + super.toString();
    }
}
